

<include file="Index/header" /></head>

<body>
<if condition="$Think.get.menuid eq ''">
<script type="text/javascript">
	$(function(){
		$("#cat_search").keyup(function(){
			if($.trim($(this).val())!=''){
				$.ajax({
					url:'<{:U('category/public_ajax_search')}>',
					data:'classname='+$.trim($(this).val()),
					type:'GET',
					dataType:'html',
					success:function(data){
						if(data!=''){
							$("#search_div").show();
							$("#search_div").html(data);
						}else{
							$("#search_div").hide();
							$("#search_div").html('');
						}

					
					}
				})
			}else{
				$("#search_div").hide();
			}

		})
	})
</script>
</if>

<if condition="$Think.get.menuid eq ''">
<style type="text/css">
html{_overflow-y:scroll}
.showMsg{border: 1px solid #339ddc; zoom:1; width:450px; height:172px;position:absolute;top:44%;left:50%;margin:-87px 0 0 -225px}
.showMsg h5{background-image: url(__TMPL__images/msg.png);background-repeat: no-repeat; color:#fff; padding-left:35px; height:25px; line-height:26px;*line-height:28px; overflow:hidden; font-size:14px; text-align:left}
.showMsg .content{ margin-top:50px; font-size:14px; height:64px; position:relative}
#search_div{ position:absolute; top:24px; border:1px solid #dfdfdf; text-align:left; padding:1px; left:71px; width:304px; background-color:#FFF;  font-size:12px;border-top:0;display:none;}
#search_div li{ line-height:24px;}
#search_div li a{  padding-left:6px;display:block}
#search_div li a:hover{ background-color:#e2eaff}

</style>
<div class="showMsg" style="text-align:center">
	<h5>快速进入</h5>
    <div class="content">
	<input type="text" size="41" class="sys_text" id="cat_search" style="width:300px;" value="输入“拼音”或者“栏目名称”可快速搜索" onFocus="if(this.value == this.defaultValue) this.value = ''" onBlur="if(this.value.replace(' ','') == '') this.value = this.defaultValue;">
    <ul id="search_div">
	</ul>
	</div>
</div>

<!--<p style="font-size:12px;position:absolute;top:44%;left:50%;margin:-50px 0 0 -100px;">请点击左侧分类</p>-->
<else/>

<!--add-tab-->
<div class="add-tab">
	<div class="at_tab">
		<a href="javascript:;" class="cur"><i><{$data['topclassname']}> - <{$data['classname']}> 信息管理</i></a> | 
		<a href="<{:U('content/add',array('menuid'=>$data['id']))}>"><i>添加内容</i></a>

	</div>
	<a href="javascript:location.reload();" style="float:right;" class="f5">刷新</a>
	<a href="javascript:window.history.go(-1);" style="float:right; margin-right:5px;" class="back">&lt;返回</a>
	<div class="clearall"></div>
</div>
<!--add-tab-->
<!--table-list-->
<div class="table-edit">
<form name="myform" id="myform"  method="post" action="">

<!--table-list-->
<div class="table-list ">

	<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table-list_tb">
		<tr>
			<th width="15" class="nobg"><input type="checkbox" value="" id="check_box" ></th>
			<th width="35">排序</th>
			<th width="35">ID</th>
			<th width="60">分类</th>
			<th>标题</th>
			<th width="40">点击量 </th>
			<th width="70">发布人</th>
			<th width="118">更新时间</th>
			<th width="110">操作</th>
		</tr>
		<if condition="$list">
		<volist name="list" id="foo">
		<tr>
			<td><input type="checkbox" value="<{$foo['id']}>" name="id[]"></td>
			<td><input type="text" class="sys_text" style="width:25px;text-align:center;" name="orderid[<{$foo['id']}>]" value="<{$foo.orderid|intval=###}>" /></td>
			<td align="center"><{$foo.id}></td>
			<td><{$foo.classname}></td>
			<td><a href="<{:U('edit',array('id'=>$foo['id'],'menuid'=>$foo['pid']))}>" style="color:<{$foo['style'][0]}>;font-weight:<{$foo['style'][1]}>;"><{$foo.title|escapeshow=###}></a> <if condition="$foo.picurl neq '' "><a href="__ROOT__/<{$foo.picurl}>" target="_blank"><img src="__TMPL__images/infoimg_ico.png" title="有缩略图,点击可查看"></a>&nbsp;</if> 
				<span style="color:#999;">
                	<?php $flagArr=explode(",",$foo['flag']);$configFlagArr=C("contentflag");?>
                    <foreach name="flagArr" item="flagVal">
                    <{$configFlagArr[$flagVal]}>&nbsp;                    </foreach>
                </span>			</td>
			<td align="center" ><{$foo.hits}></td>
			<td align="center"  ><{$foo.username}></td>
			<td align="center"  ><{$foo.updatetime|getdatetime=###}></td>
			<td align="center" ><a href="<{:U('content/checkinfo',array('id'=>$foo['id'],'menuid'=>$foo['pid']))}>"><if condition="$foo.checkinfo eq '0'">已审核<else/><span style="color:red;">未审核</span></if></a> | <a href="<{:U('content/edit',array('id'=>$foo['id'],'menuid'=>$foo['pid']))}>">修改</a> | <a href="<{:U('content/del',array('id'=>$foo['id']))}>" onClick="return del(0);">删除</a></td>
		</tr>
		</volist>
		<else/>
		<tr><td colspan="9" class="nodata">暂无相关数据</td></tr>
		</if>
	</table>

	<div class="tools-list">
		<table cellpadding="0" cellspacing="0" border="0" width="100%" class="tools-list_tb">
			<tr>
		
				<td colspan="2">
				<label for="check_box">全选/取消</label>
					<input type="button" class="sys_btn" value="删除" onClick="myform.action='<{:U('del')}>';return confirm_del();" /> 
					&nbsp;<input type="button" class="sys_btn" value="排序" onClick="myform.action='<{:U('orderid',array('menuid'=>$data['id']))}>';myform.submit();" /> 
				</td>
				<td class="bk_right">
					<div class="pages"><{$page}></div>
				</td>
			</tr>
		</table>
	</div>

</div>

<!--/table-list-->
	</form>

</div>
<!--/table-list-->

</if>
</body>
</html>
